﻿@{
    
}
@section head{<link type="text/css" href="/dist/css/bootstrap-switch.min.css" rel="stylesheet" />
    <title>编辑班级</title>

}
@section content{

    <div id="pageflag" data-nav="edu" data-ban="ke"></div>
    <input type="hidden" id="classid_hid" />
    <div class="container margin_t5">
        <ol class="breadcrumb">
            <li><a href="@Url.Action("Default","")">用户中心</a></li>
            <li><a href="@Url.Action("ClassManage","Exam")">班级管理</a></li>
            <li class="active">编辑班级</li>
        </ol>
    </div>
    <div class="container btn_green">
        <table class="table table-striped table-bordered table-hover">
            <tbody id="Tabs0">
                <tr>
                    <td class="td_m text-right">
                        班级名称:
                    </td>
                    <td>
                        <input type="text" id="classname" name="classname" class="form-control text_300" />
                        <font color="red">*</font>
                    </td>
                </tr>
                <tr>
                    <td class="td_l text-right"><strong>所属学校:</strong></td>
                    <td>
                        <input type="text" id="schoolname_t" name="schoolname_t" class="form-control text_300" placeholder="请选择学校" />
                        <input type="hidden" id="schoolname_hid" />
                        <button type="button" onclick="ShowSchool()" class="btn btn-primary">填写或选择学校</button>
                    </td>
                </tr>
                <tr>
                    <td class="text-right"><strong>班级年级:</strong></td>
                    <td>
                        @*<asp:DropDownList ID="GradeList_Drop" CssClass="form-control text_300" runat="server" DataTextField="GradeName" DataValueField="GradeID"></asp:DropDownList>*@
                    </td>
                </tr>
                <tr>
                    <td class="text-right"><strong>最大人数:</strong></td>
                    <td>
                        <input type="text" id="classnum_t" name="classnum_t" class="form-control text_x int" value="100" /> 
                    </td>
                </tr>
                <tr>
                    <td class="text-right"><strong>是否毕业:</strong></td>
                    <td>
                        <input type="checkbox" class="switchChk" id="isdone_check" />
                    </td>
                </tr>
                <tr>
                    <td class="text-right">班级微标:</td>
                    <td>
                        <input type="text" id="classicon_t" name="classicon_t" class="form-control text_300" />
                    </td>
                </tr>
                <tr>
                    <td class="text-right">班级宣言:</td>
                    <td>
                        <textarea class="form-control text_300" id="classdeailt_t" name="classdeailt_t" ></textarea>
                    </td>
                </tr>
            </tbody>
            <tr class="tdbgbottom">
                <td></td>
                <td>
                    <button id="ebtnsubmit" class="btn btn-primary" onclick="EBtnSubmit_Click">添加班级</button> 
                    <a href="@Url.Action("ClassManage","Exam")" class="btn btn-primary">返回列表</a>
                </td>
            </tr>
        </table>
    </div>
}
@section script{
<script type="text/javascript" src="/dist/js/bootstrap-switch.js"></script>
<script src="/JS/DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/JS/Controls/ZL_Dialog.js"></script>
<script type="text/javascript" src="/JS/ZL_Regex.js"></script>
<script src="/JS/Controls/Control.js"></script>
<script src="/JS/ICMS/area.js"></script>
<script src="/JS/Controls/ZL_PCC.js"></script>
    <script type="text/javascript">
        var typediag = new ZL_Dialog();
        $(function () {
            ZL_Regex.B_Num('.int');
            $("#ClassIcon_T").iconSelect();
        });
        function CheckData() {
            if (ZL_Regex.isEmpty($("#ClassName_T").val())) { alert("班级名称不能为空!"); return false; }
            if (ZL_Regex.isEmpty($("#SchoolName_Hid").val())) { alert("请选择学校!"); return false; }
            return true;
        }
        function ShowSchool() {
            typediag.url = "SelSchool.aspx";
            typediag.title = "选择学校";
            typediag.reload = true;
            typediag.maxbtn = false;
            typediag.width = "width1100";
            typediag.ShowModal();
        }
        function CloseDiag() {
            typediag.CloseModal();
        }
        function GetSchoolName(name) {
            $("#SchoolName_T").val(name);
            $("#SchoolName_Hid").val(name);
            typediag.CloseModal();
        }
    </script>
}

